/**
 * @author zhouzhiheng98@foxmail.com 2020-07-17 12:02:25
 */
public class ShiftOperator {
    public static void main(String[] args) {
        // 00000000 00000000 00000000 00000111 = 7
        int n = 7;
        // 00000000 00000000 00000000 00001110 = 14
        int a = n << 1;
        // 00000000 00000000 00000000 00011100 = 28
        int b = n << 2;
        // 01110000 00000000 00000000 00000000 = 1879048192
        int c = n << 28;
        // 11100000 00000000 00000000 00000000 = -536870912
        int d = n << 29;
        System.out.printf("%d,%d,%d,%d",a,b,c,d);
    }
}
